package spring.response.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import lombok.Getter;

@JsonFormat(shape = Shape.NUMBER_INT)
@Getter
public enum JsonResponseCode {

	SUCCESS(0), ERROR(-1);
	
	private int val;
	private JsonResponseCode(int val) {
		this.val = val;
	}
	
	
	@Override
	public String toString() {
		return this.val + "";
	}
	
}
